libjmock2-java software package provides Java library for testing code with mock objects, you can install in your Ubuntu 14.04 LTS (Trusty Tahr) by running the commands given below on the terminal,
$ sudo apt-get update $ sudo apt-get install libjmock2-java
libjmock2-java is installed in your system.
Make ensure the libjmock2-java package were installed using the commands given below,
$ sudo dpkg-query -l | grep libjmock2-java *
You will get with libjmock2-java package name, version, architecture and description in a table
| Distro | Ubuntu 14 04 lts trusty tahr |
| Section | Java |
| Package | libjmock2-java |
| Version | 2.7~snapshot+201309170925-gitd |
| Description | Java library for testing code with mock objects |
| Sub Section | Java |